package com.tripwego.client.event;

import com.google.gwt.event.shared.GwtEvent;
import com.tripwego.client.model.ActiviteModel;

public class AddActiviteEvent extends GwtEvent<AddActiviteEventHandler> {

	public static Type<AddActiviteEventHandler> TYPE = new Type<AddActiviteEventHandler>();

	private ActiviteModel ActiviteModel;

	public AddActiviteEvent(ActiviteModel ActiviteModel) {
		this.ActiviteModel = ActiviteModel;
	}

	@Override
	public Type<AddActiviteEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(AddActiviteEventHandler handler) {
		handler.handleAddActiviteEvent(this);
	}

	/**
	 * @return the ActiviteModel
	 */
	public ActiviteModel getActiviteModel() {
		return ActiviteModel;
	}

	/**
	 * @param ActiviteModel
	 *            the ActiviteModel to set
	 */
	public void setActiviteModel(ActiviteModel ActiviteModel) {
		this.ActiviteModel = ActiviteModel;
	}

}